package ${package}.${moduleName}.convertor;

import ${package}.${moduleName}.entity.${ClassName};
import ${package}.${moduleName}.service.api.dto.${ClassName}Dto;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;

/**
* ${tableComment}转换类
*
* @author ${author}
* @since ${date}
*/
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ${ClassName}Convertor extends BaseConvertor {

    ${ClassName} convertToEntity(${ClassName}Dto dto);

    ${ClassName}Dto convertToDto(${ClassName} entity);

    List<${ClassName}Dto> convertToDtoList(List<${ClassName}> entityList);

    List<${ClassName}> convertToEntityList(List<${ClassName}Dto> dtoList);

}